// realistic-logs.js: Realistic and template logs for fake-progress
const LOGS = {
  install: [
    '> Fetching lodash@4.17.21',
    '[INFO] Resolving dependencies...',
    '[OK] Package express installed',
    '[WARN] Deprecated API used in core-js@2.6.12',
    '[ERROR] Failed to fetch tarball',
    '[12:34:56] Downloading registry.npmjs.org/lodash',
    '✔ Linked core module',
    '✖ Permission denied: /usr/local/lib',
    '----------------------',
    '$ npm install lodash',
    'added {RANDOM:10-300} packages in {RANDOM:1-30}.{RANDOM:0-9}s',
    'npm WARN deprecated core-js@2.6.12',
    'npm http fetch GET 200 https://registry.npmjs.org/lodash {RANDOM:100-3000}ms',
    '[Step 1/3] Installing dependencies...',
    '> Fetching express@{RANDOM:1-5}.{RANDOM:0-9}.{RANDOM:0-9}',
    '[INFO] Checking peer dependencies',
    '[OK] All packages up to date',
    '[WARN] Unmet peer dependency: react@{RANDOM:16-18}',
    '[ERROR] EACCES: permission denied, open package-lock.json',
    '[INFO] Running post-install script',
    '✔ All modules linked',
    '[INFO] Cleaning up node_modules',
    '[OK] npm cache verified',
    '[12:{RANDOM:10-59}:{RANDOM:10-59}] Installing optional dependencies',
    '[INFO] Checking for updates',
    '[OK] No vulnerabilities found',
    '[WARN] Skipping optional dependency: fsevents',
    '[INFO] Rebuilding native modules',
    '[OK] Build completed in {RANDOM:1-10}.{RANDOM:0-9}s',
    '[INFO] Updating lockfile',
    '[OK] Lockfile updated',
    '[INFO] Pruning unused packages',
    '[OK] Pruned {RANDOM:1-20} packages',
    '[INFO] Running audit',
    '[OK] 0 vulnerabilities found',
    '[WARN] 1 low severity vulnerability',
    '[INFO] Generating package tree',
    '[OK] Package tree generated',
    '[INFO] Checking npm registry status',
    '[OK] Registry online',
    '[INFO] Downloading tarball',
    '[OK] Tarball verified',
    '[INFO] Extracting files',
    '[OK] Extraction complete',
    '[INFO] Finalizing install',
    '[OK] Install finished',
    '[INFO] Cleaning up',
    '[OK] Done',
    '[INFO] All done!',
    '> Fetching chalk@{RANDOM:4-5}.{RANDOM:0-9}.{RANDOM:0-9}',
    '[INFO] Checking npm registry connectivity',
    '[OK] Registry latency: {RANDOM:10-200}ms',
    '[WARN] Package left-pad is deprecated',
    '[ERROR] Failed to extract tarball: unexpected end of file',
    '[INFO] Downloading dependency tree',
    '[OK] Dependency tree resolved',
    '[INFO] Checking for duplicate packages',
    '[OK] No duplicates found',
    '[WARN] Skipping optional dependency: node-sass',
    '[INFO] Running npm audit fix',
    '[OK] 2 vulnerabilities fixed',
    '[INFO] Running npm dedupe',
    '[OK] Dedupe complete',
    '[INFO] Checking scripts',
    '[OK] All scripts passed',
    '[INFO] Running preinstall script',
    '[OK] Preinstall script finished',
    '[INFO] Running postinstall script',
    '[OK] Postinstall script finished',
    '[INFO] Checking for outdated packages',
    '[OK] All packages up to date',
    '[WARN] Found {RANDOM:1-5} outdated packages',
    '[INFO] Updating outdated packages',
    '[OK] Updated {RANDOM:1-5} packages',
    '[INFO] Checking npm cache',
    '[OK] npm cache is clean',
    '[INFO] Downloading {RANDOM:1-5} tarballs',
    '[OK] All tarballs downloaded',
    '[INFO] Checking integrity of node_modules',
    '[OK] All files verified',
    '[INFO] Running npm prune',
    '[OK] Pruned {RANDOM:1-10} packages',
    '[INFO] Checking for peer conflicts',
    '[WARN] Peer conflict detected: react@{RANDOM:16-18}',
    '[INFO] Resolving peer conflicts',
    '[OK] Peer conflicts resolved',
    '[INFO] Checking for license issues',
    '[OK] No license issues found',
    '[INFO] Running npm fund',
    '[OK] Funding info displayed',
    '[INFO] Checking for scripts',
    '[OK] No suspicious scripts found',
    '[INFO] Checking for binaries',
    '[OK] All binaries present',
    '[INFO] Checking for symlinks',
    '[OK] No broken symlinks',
    '[INFO] Checking for global installs',
    '[OK] No global installs detected',
    '[INFO] Checking for shrinkwrap',
    '[OK] No shrinkwrap found',
    '[INFO] Checking for npmrc',
    '[OK] npmrc loaded',
    '[INFO] Checking for .env',
    '[OK] .env loaded',
    '[INFO] Checking for .npmignore',
    '[OK] .npmignore loaded',
    '[INFO] Checking for .gitignore',
    '[OK] .gitignore loaded',
    '[INFO] Checking for README.md',
    '[OK] README.md found',
    '[INFO] Checking for LICENSE',
    '[OK] LICENSE found',
    '[INFO] Checking for package.json',
    '[OK] package.json found',
    '[INFO] Checking for package-lock.json',
    '[OK] package-lock.json found',
    '[INFO] Checking for yarn.lock',
    '[OK] yarn.lock not found',
    '[INFO] Checking for pnpm-lock.yaml',
    '[OK] pnpm-lock.yaml not found',
    '[INFO] Checking for node-gyp',
    '[OK] node-gyp not required',
    '[INFO] Checking for node-pre-gyp',
    '[OK] node-pre-gyp not required',
    '[INFO] Checking for node-addon-api',
    '[OK] node-addon-api not required',
    '[INFO] Checking for node-sass',
    '[OK] node-sass not required',
    '[INFO] Checking for node_modules/.bin',
    '[OK] .bin directory found',
    '[INFO] Checking for node_modules/.cache',
    '[OK] .cache directory found',
    '[INFO] Checking for node_modules/.staging',
    '[OK] .staging directory not found',
    '[INFO] Checking for node_modules/.tmp',
    '[OK] .tmp directory not found',
    '[INFO] Checking for node_modules/.yarn-integrity',
    '[OK] .yarn-integrity not found',
    '[INFO] Checking for node_modules/.pnpm-debug.log',
    '[OK] .pnpm-debug.log not found',
    '[INFO] Checking for node_modules/.npm',
    '[OK] .npm directory found',
    '[INFO] Checking for node_modules/.yarn',
    '[OK] .yarn directory not found',
    '[INFO] Checking for node_modules/.pnpm',
    '[OK] .pnpm directory not found',
    '[INFO] Checking for node_modules/.cache',
    '[OK] .cache directory found',
    '[INFO] Checking for node_modules/.staging',
    '[OK] .staging directory not found',
    '[INFO] Checking for node_modules/.tmp',
    '[OK] .tmp directory not found',
    '[INFO] Checking for node_modules/.yarn-integrity',
    '[OK] .yarn-integrity not found',
    '[INFO] Checking for node_modules/.pnpm-debug.log',
    '[OK] .pnpm-debug.log not found',
    '[INFO] Checking for node_modules/.npm',
    '[OK] .npm directory found',
    '[INFO] Checking for node_modules/.yarn',
    '[OK] .yarn directory not found',
    '[INFO] Checking for node_modules/.pnpm',
    '[OK] .pnpm directory not found',
    '[INFO] Checking for node_modules/.cache',
    '[OK] .cache directory found',
    '[INFO] Checking for node_modules/.staging',
    '[OK] .staging directory not found',
    '[INFO] Checking for node_modules/.tmp',
    '[OK] .tmp directory not found',
    '[INFO] Checking for node_modules/.yarn-integrity',
    '[OK] .yarn-integrity not found',
    '[INFO] Checking for node_modules/.pnpm-debug.log',
    '[OK] .pnpm-debug.log not found',
    '[INFO] Checking for node_modules/.npm',
    '[OK] .npm directory found',
    '[INFO] Checking for node_modules/.yarn',
    '[OK] .yarn directory not found',
    '[INFO] Checking for node_modules/.pnpm',
    '[OK] .pnpm directory not found',
    '[INFO] Checking for node_modules/.cache',
    '[OK] .cache directory found',
    '[INFO] Checking for node_modules/.staging',
    '[OK] .staging directory not found',
    '[INFO] Checking for node_modules/.tmp',
    '[OK] .tmp directory not found',
    '[INFO] Checking for node_modules/.yarn-integrity',
    '[OK] .yarn-integrity not found',
    '[INFO] Checking for node_modules/.pnpm-debug.log',
    '[OK] .pnpm-debug.log not found',
    '[INFO] Checking for node_modules/.npm',
    '[OK] .npm directory found',
    '[INFO] Checking for node_modules/.yarn',
    '[OK] .yarn directory not found',
    '[INFO] Checking for node_modules/.pnpm',
    '[OK] .pnpm directory not found',
    '[INFO] Checking for node_modules/.cache',
    '[OK] .cache directory found',
    '[INFO] Checking for node_modules/.staging',
    '[OK] .staging directory not found',
    '[INFO] Checking for node_modules/.tmp',
    '[OK] .tmp directory not found',
    '[INFO] Checking for node_modules/.yarn-integrity',
    '[OK] .yarn-integrity not found',
    '[INFO] Checking for node_modules/.pnpm-debug.log',
    '[OK] .pnpm-debug.log not found',
    '[INFO] Checking for node_modules/.npm',
    '[OK] .npm directory found',
    '[INFO] Checking for node_modules/.yarn',
    '[OK] .yarn directory not found',
    '[INFO] Checking for node_modules/.pnpm',
    '[OK] .pnpm directory not found',
    '[INFO] Checking for node_modules/.cache',
    '[OK] .cache directory found',
    '[INFO] Checking for node_modules/.staging',
    '[OK] .staging directory not found',
    '[INFO] Checking for node_modules/.tmp',
    '[OK] .tmp directory not found',
    '[INFO] Checking for node_modules/.yarn-integrity',
    '[OK] .yarn-integrity not found',
    '[INFO] Checking for node_modules/.pnpm-debug.log',
    '[OK] .pnpm-debug.log not found',
    '[INFO] Checking for node_modules/.npm',
    '[OK] .npm directory found',
    '[INFO] Checking for node_modules/.yarn',
    '[OK] .yarn directory not found',
    '[INFO] Checking for node_modules/.pnpm',
    '[OK] .pnpm directory not found',
    '[ERROR] Unexpected token in JSON',
    '[ERROR] Failed to parse config file',
    '[ERROR] Connection timed out',
    '[ERROR] Host not found',
    '[ERROR] Permission denied (publickey)',
    '[ERROR] SSL certificate expired',
    '[ERROR] Invalid checksum',
    '[ERROR] File is too large',
    '[ERROR] Disk full',
    '[ERROR] Out of disk space',
    '[ERROR] Cannot allocate memory',
    '[ERROR] Broken symlink',
    '[ERROR] File already exists',
    '[ERROR] Operation timed out',
    '[ERROR] No route to host',
    '[ERROR] Protocol not supported',
    '[ERROR] Invalid response from server',
    '[ERROR] Server returned 500 Internal Server Error',
    '[ERROR] Server returned 404 Not Found',
    '[ERROR] Server returned 403 Forbidden',
    '[ERROR] Server returned 400 Bad Request',
    '[ERROR] Server returned 502 Bad Gateway',
    '[ERROR] Server returned 503 Service Unavailable',
    '[ERROR] Server returned 504 Gateway Timeout',
    '[ERROR] Unknown error occurred'
  ],
  compile: [
    '> Compiling main.cpp...',
    '[INFO] Optimizing render()',
    '[OK] Build finished',
    '[WARN] Unused variable TMP',
    '[ERROR] Compilation failed: missing ;',
    '[12:35:01] Linking objects',
    '✔ main.o generated',
    '✖ Undefined reference to function',
    '----------------------',
    '$ g++ -O2 -Wall -c main.cpp -o main.o',
    "warning: unused parameter ‘argc’ [-Wunused-parameter]",
    '[Step 2/3] Running post-build scripts...',
    '> Compiling {RANDOM:1-10} source files...',
    '[INFO] Using GCC {RANDOM:7-12}.{RANDOM:0-9}',
    '[OK] All objects linked',
    '[WARN] Deprecated flag -fpermissive',
    '[ERROR] Undefined symbol: _ZSt4cout',
    '[INFO] Generating binary',
    '[OK] Binary size: {RANDOM:100-5000}KB',
    '[WARN] Large binary size',
    '[INFO] Stripping symbols',
    '[OK] Stripped {RANDOM:1-100} symbols',
    '[INFO] Running static analysis',
    '[OK] No issues found',
    '[WARN] 1 warning generated',
    '[INFO] Linking libraries',
    '[OK] Linked {RANDOM:1-10} libraries',
    '[INFO] Build completed in {RANDOM:1-10}.{RANDOM:0-9}s',
    '[OK] Compilation successful',
    '[INFO] Cleaning build directory',
    '[OK] Build directory cleaned',
    '[INFO] All done!',
    '> Compiling utils.c...',
    '[INFO] Using clang {RANDOM:10-15}.{RANDOM:0-9}',
    '[OK] All warnings treated as errors',
    '[WARN] Deprecated function used: gets()',
    '[ERROR] Segmentation fault at address 0x{RANDOM:1000-FFFF}',
    '[INFO] Running linter',
    '[OK] Lint passed',
    '[WARN] 2 style issues found',
    '[INFO] Running unit tests',
    '[OK] All tests passed',
    '[WARN] 1 test skipped',
    '[INFO] Generating documentation',
    '[OK] Documentation generated',
    '[INFO] Running code coverage',
    '[OK] Coverage: {RANDOM:80-100}%',
    '[WARN] Coverage below threshold',
    '[INFO] Running static analyzer',
    '[OK] No static issues found',
    '[INFO] Running memory check',
    '[OK] No memory leaks detected',
    '[WARN] Potential memory leak in function foo()',
    '[INFO] Running valgrind',
    '[OK] Valgrind clean',
    '[INFO] Running cppcheck',
    '[OK] cppcheck clean',
    '[INFO] Running clang-tidy',
    '[OK] clang-tidy clean',
    '[INFO] Running make clean',
    '[OK] make clean complete',
    '[INFO] All done!'
  ],
  download: [
    '> Downloading update.zip...',
    '[INFO] Connecting to https://cdn.example.com',
    '[OK] File received',
    '[WARN] Slow network detected',
    '[ERROR] Checksum mismatch',
    '[12:35:10] Downloading node-v18.16.1.pkg',
    '✔ Download completed',
    '✖ Network timeout',
    '----------------------',
    '$ curl -O https://cdn.example.com/update.zip',
    'Received {RANDOM:10-100}MB of data',
    'Verifying checksum for update.zip',
    'Download completed in {RANDOM:1-30}s',
    '[Step 3/3] Verifying download...',
    '> Downloading {RANDOM:1-5} files...',
    '[INFO] Connecting to mirror server',
    '[OK] Mirror server responded',
    '[WARN] Mirror server slow',
    '[ERROR] Download interrupted',
    '[INFO] Retrying download',
    '[OK] Download resumed',
    '[INFO] Checking file integrity',
    '[OK] File integrity verified',
    '[INFO] Extracting archive',
    '[OK] Extraction complete',
    '[INFO] Cleaning up temp files',
    '[OK] Temp files removed',
    '[INFO] All done!',
    '> Downloading data.tar.gz...',
    '[INFO] Connecting to backup server',
    '[OK] Backup server responded',
    '[WARN] Slow response from backup server',
    '[ERROR] Download failed: connection reset',
    '[INFO] Retrying download in {RANDOM:1-5}s',
    '[OK] Download resumed',
    '[INFO] Download speed: {RANDOM:100-1000}KB/s',
    '[WARN] Download speed below threshold',
    '[INFO] Verifying download',
    '[OK] Download verified',
    '[INFO] Extracting data',
    '[OK] Data extracted',
    '[INFO] Cleaning up',
    '[OK] Cleanup complete',
    '[INFO] All done!'
  ],
  common_errors: [
    "[ERROR] Failed to resolve module: 'react-router'",
    "EACCES: permission denied, mkdir '/usr/local/lib'",
    '[ERROR] Network timeout while downloading',
    '[ERROR] Checksum mismatch for downloaded file',
    '✖ Unexpected end of file',
    '[WARN] Disk space low',
    '[ERROR] No such file or directory',
    '[ERROR] Segmentation fault (core dumped)',
    '[ERROR] Out of memory',
    '[ERROR] Permission denied',
    '[ERROR] Connection refused',
    '[ERROR] Invalid argument',
    '[ERROR] Broken pipe',
    '[ERROR] File not found',
    '[ERROR] Operation not permitted',
    '[ERROR] Disk quota exceeded',
    '[ERROR] Read-only file system',
    '[ERROR] Device or resource busy',
    '[ERROR] Too many open files',
    '[ERROR] Illegal instruction',
    '[ERROR] Bus error',
    '[ERROR] Floating point exception',
    '[ERROR] Stack overflow',
    '[ERROR] Timeout expired',
    '[ERROR] Protocol error',
    '[ERROR] Bad file descriptor',
    '[ERROR] Broken link',
    '[ERROR] Unknown error occurred',
    '[ERROR] Unexpected token in JSON',
    '[ERROR] Failed to parse config file',
    '[ERROR] Connection timed out',
    '[ERROR] Host not found',
    '[ERROR] Permission denied (publickey)',
    '[ERROR] SSL certificate expired',
    '[ERROR] Invalid checksum',
    '[ERROR] File is too large',
    '[ERROR] Disk full',
    '[ERROR] Out of disk space',
    '[ERROR] Cannot allocate memory',
    '[ERROR] Broken symlink',
    '[ERROR] File already exists',
    '[ERROR] Operation timed out',
    '[ERROR] No route to host',
    '[ERROR] Protocol not supported',
    '[ERROR] Invalid response from server',
    '[ERROR] Server returned 500 Internal Server Error',
    '[ERROR] Server returned 404 Not Found',
    '[ERROR] Server returned 403 Forbidden',
    '[ERROR] Server returned 400 Bad Request',
    '[ERROR] Server returned 502 Bad Gateway',
    '[ERROR] Server returned 503 Service Unavailable',
    '[ERROR] Server returned 504 Gateway Timeout',
    '[ERROR] Unknown error occurred'
  ]
};

export default LOGS; 